package com.adtec.base.cloud.xxljobservise.xxljob;

import feign.Logger;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * @author 86185
 */
@SpringBootApplication(scanBasePackages = {"com.adtec.base.cloud"})
@MapperScan(basePackages = {"com.adtec.base.cloud.**.mapper"})
@EnableDiscoveryClient
@EnableFeignClients
public class XxlJobApplication {

    public static void main(String[] args) {
        SpringApplication.run(XxlJobApplication.class, args);
    }

    //配置feign日志在主服务端输出
    @Bean
    public Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }
}
